package com.gitee.fanx.retty.web;

import com.gitee.fanx.retty.exception.NoRouteFoundException;
import io.netty.handler.codec.http.HttpResponseStatus;

public interface ExceptionHandler {

	ExceptionResult handle(Throwable e);

	default ExceptionResult handle(NoRouteFoundException e) {
		return new ExceptionResult(HttpResponseStatus.NOT_FOUND, null);
	}

}
